import "package:ct_pa_majordomo/config/theme_vars.dart";
import "package:ct_pa_majordomo/widgets/divider/solid_divider.dart";
import "package:flutter/cupertino.dart";
import "package:flutter/material.dart";

class OpeRecord extends StatefulWidget {
  const OpeRecord({super.key});

  @override
  State<StatefulWidget> createState() => _OpeRecordState();

}

class _OpeRecordState extends State<OpeRecord> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        iconTheme: const IconThemeData(color: Colors.white),
        title: const Text("操作记录", style: TextStyle(color: Colors.white),),
        centerTitle: true,
        backgroundColor: ThemeVars.colorPrimaryDark,
        leading: IconButton(
          icon: const Icon(Icons.arrow_back_ios_new),
          onPressed: () {
            Navigator.pop(context);
          },
        ),
      ),
      body: Container(
        decoration: const BoxDecoration(
          color: Colors.white,
        ),
        child: ListView(
          // physics: const NeverScrollableScrollPhysics(),
          shrinkWrap: true,
          children: const [
            Padding(
              padding: EdgeInsets.fromLTRB(15, 16, 10, 16),
              child: Row(
                children: [
                  Icon(Icons.access_time, color: ThemeVars.colorPrimary, size: 24,),
                  SizedBox(width: 8,),
                  Text("2024-05-21 20:49 开锁", style: TextStyle(color: ThemeVars.colorTextTer, fontSize: 16),),
                ],
              ),
            ),
            SolidDivider(padding: EdgeInsets.only(left: 15),),
            Padding(
              padding: EdgeInsets.fromLTRB(15, 16, 10, 16),
              child: Row(
                children: [
                  Icon(Icons.access_time, color: ThemeVars.colorPrimary, size: 24,),
                  SizedBox(width: 8,),
                  Text("2024-05-21 20:49 开锁", style: TextStyle(color: ThemeVars.colorTextTer, fontSize: 16),),
                ],
              ),
            ),
            SolidDivider(padding: EdgeInsets.only(left: 15),),
            Padding(
              padding: EdgeInsets.fromLTRB(15, 16, 10, 16),
              child: Row(
                children: [
                  Icon(Icons.access_time, color: ThemeVars.colorPrimary, size: 24,),
                  SizedBox(width: 8,),
                  Text("2024-05-21 20:49 开锁", style: TextStyle(color: ThemeVars.colorTextTer, fontSize: 16),),
                ],
              ),
            ),
            SolidDivider(padding: EdgeInsets.only(left: 15),),
          ],
        ),
      )
    );
  }

}